package org.linlinjava.litemall.wx.vo;

import org.linlinjava.litemall.db.domain.LitemallCoupon;
import org.linlinjava.litemall.db.util.CouponUserConstant;

/**
 * 优惠券列表页面 VO，继承自 LitemallCoupon，添加用户相关状态
 */
public class CouponListVo extends LitemallCoupon {
    // 领取状态
    public static final Short STATUS_NOT_RECEIVE = 1;    // 未领取
    public static final Short STATUS_RECEIVED = 2;       // 已领取
    public static final Short STATUS_INSUFFICIENT = 3;   // 优惠券数量不足
    public static final Short STATUS_EXPIRED = 4; // 已过期
    public static final Short STATUS_OUT = 5; // 已下架

    private Short userStatus = STATUS_NOT_RECEIVE;

    /**
     * 用户优惠券ID，如果用户已领取则不为空
     */
    private Integer userCouponId;

    public Short getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Short userStatus) {
        this.userStatus = userStatus;
    }

    public Integer getUserCouponId() {
        return userCouponId;
    }

    public void setUserCouponId(Integer userCouponId) {
        this.userCouponId = userCouponId;
    }
} 